<cfcomponent>
	<cffunction name="loadscripts" access="public" returntype="string" hint="loads the javascripts for sharethis integration">
		<cfargument name="pubid" type="string" required="yes" hint="The publisher id">
			
            <cfsavecontent variable="sharethis_script">
			<cfoutput>
			<script type="text/javascript">var switchTo5x=true;</script>
            <script type="text/javascript" src="https://ws.sharethis.com/button/buttons.js"></script>
            <script type="text/javascript">stLight.options({publisher:'#pubid#'});</script>
			</cfoutput>
			</cfsavecontent>

		<cfreturn sharethis_script>
	</cffunction>
</cfcomponent>